using System;
using System.IO;

namespace AnTunes
{
	class Id3StreamReader : TagLib.File.IFileAbstraction
	{	  
	    public Id3StreamReader(string name, Stream stream)
	    {
	        stream_ = stream;
			name_ = name;
	    }
	  
	    public string Name
	    {
	        get { return name_; }
	    }
	  
	    public System.IO.Stream ReadStream
	    {
	        get { return stream_; }
	    }
	  
	    public System.IO.Stream WriteStream
	    {
	        get {  throw new NotImplementedException(); }
	    }
	  
	    public void CloseStream(System.IO.Stream stream) 
	    {
	        stream.Close();
	    }
		
		private string name_;
		private Stream stream_;
	}

}

